<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUGroupTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('u_group', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name', 45)->comment('组名称');
            $table->string('remark', 90)->comment('备注');
            $table->integer('user_id')->comment('组所属的用户id');
            $table->string('member_id', 128)->comment('组内成员id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('u_group');
    }
}
